package Object_5;

public class Test {


    public static void main(String[] args) {
//        String s1 = "q";
//        String s2 = "q";
//        System.out.println(s1 == s2);

//        String s1 = new String("q");
//        String s2 = new String("q");
//        System.out.println(s1 == s2);

//        String s1 = new String("q");
//        String s2 = new String("q");
//        System.out.println(s1.equals(s2));
        Student s1 = new Student("张三",1,90.0);
        Student s2 = new Student("李四",1,91.0);
        Student s3 = new Student("小七",2,90.0);
        System.out.println(s1.equals(s2));
        System.out.println(s2.equals(s3));




    }
}
